package org.example.group5back.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.group5back.entity.PersonEntity;

import java.util.List;

@Mapper
public interface PersonMapper {
    public List<PersonEntity> findAllPerson();

    boolean updatePerson(PersonEntity ps);

    boolean insertPerson(PersonEntity ps);

    boolean deletePerson(Integer psId);

    void updateAfterDelete(Integer psId);

    List<PersonEntity> showPageLimit(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);

    List<PersonEntity> selectByName(@Param("person_number") String personNumber, @Param("person_name") String personName, @Param("degree") String degree, @Param("person_position") String personPosition, @Param("telephone") String telephone);
}
